export type Config ={
    backend:string;
    serviceName:string;
}

export type YoloLog = {
    name:string,
    class:number,
    confidence:number,
    box:{
        x1:number,
        y1:number,
        x2:number,
        y2:number,
    }
}

export type PersonDetail= {
    box:number[]
    sex:"Male" | "Female"
    ageRange:"Age18-60"|"AgeOver60"|"AgeLess18"
    orient:"Back"|"Side"|"Front"
    hasHat:boolean
    hasGlass:boolean
    hasHandBag:boolean
    hasShoulderBag:boolean
    hasBackPack:boolean
    upperWear:string
    lowerWear:string
    upperColor:string
    lowerColor:string
}


export type DetectedLog = {
    timestamp:number;
    yoloLog:YoloLog[];
    personDetail:PersonDetail[];
}

export type LoadedData = {
    videoPath:string;
    fps:number;
    size:number[];
    detectedLog:DetectedLog[]
}
